\chapter{项目测试}

\section{前端页面}

以下将给出前端页面各功能实现的截图

\begin{figure}[h]
    \centering
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width=\textwidth]{Firstpage}
        \caption{首页}\label{fig:Firstpage}
    \end{minipage}
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width=\textwidth]{pages}
        \caption{商家列表}\label{fig:pages}
    \end{minipage}
    \vspace{\baselineskip}
\end{figure}

\begin{figure}[h]
    \centering
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width=\textwidth]{order}
        \caption{下单}\label{fig:order}
    \end{minipage}
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width=\textwidth]{TOpayment}
        \caption{确认订单}\label{fig:TOpayment}
    \end{minipage}
    \vspace{\baselineskip}
\end{figure}

\begin{figure}[h]
    \centering
    \begin{minipage}{0.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{paymentPage}
        \caption{支付页面}\label{fig:paymentPage}
    \end{minipage}
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width=\textwidth]{orderlist}
        \caption{历史订单}\label{fig:orderlist}
    \end{minipage}
    \vspace{\baselineskip}
\end{figure}

\begin{figure}[h]
    \centering
    \begin{minipage}{0.49\textwidth}
        \centering
        \includegraphics[width=\textwidth]{payDone}
        \caption{支付成功(3秒后自动跳转至首页)}\label{fig:payDone}
    \end{minipage}
    \begin{minipage}{0.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{payFail}
        \caption{支付失败}\label{fig:payFail}
    \end{minipage}
    \vspace{\baselineskip}
\end{figure}
\clearpage
以下是关于用户以及商家页面

\begin{figure}[h]
    \centering
    \begin{minipage}{0.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{personalInfo}
        \caption{用户个人信息}\label{fig:personalInfo}
    \end{minipage}
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width=\textwidth]{amountofbusiness}
        \caption{商家店铺管理}\label{fig:amountofbusiness}
    \end{minipage}
    \vspace{\baselineskip}
\end{figure}

\begin{figure}[h]
    \centering
    \begin{minipage}{0.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{addbusinessinfo}
        \caption{新增店铺}\label{fig:addbusinessinfo}
    \end{minipage}
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width=\textwidth]{changebusinessinfo}
        \caption{更改店铺}\label{fig:changebusinessinfo}
    \end{minipage}
    \vspace{\baselineskip}
\end{figure}
\clearpage
以下是商家更改商品价格的操作

\begin{figure}[h]
    \centering
    \includegraphics[width=0.5\textwidth]{changefoodprice}
    \caption{编辑商品}\label{fig:changefoodprice}
    \vspace{\baselineskip}
\end{figure}
\clearpage
以下为商品价格改后的对比图

\begin{figure}[h]
    \centering
    \begin{minipage}{0.5\textwidth}
        \centering
        \includegraphics[width=\textwidth]{originalprice}
        \caption{原始价格}\label{fig:originalprice}
    \end{minipage}
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width=\textwidth]{changedprice}
        \caption{改后价格}\label{fig:changedprice}
    \end{minipage}
    \vspace{\baselineskip}
\end{figure}
\clearpage

\section{后端测试}
使用postman对项目接口进行测试
\begin{figure}[h]
    \centering
    \includegraphics[width=1\textwidth]{getUserbyID}
    \caption{用户信息}\label{fig:getUserbyID}
    \vspace{\baselineskip}
\end{figure}

\begin{figure}[h]
    \centering
    \includegraphics[width=1\textwidth]{listOrderByuserID}
    \caption{查询用户的订单}\label{fig:listOrderByuserID}
    \vspace{\baselineskip}
\end{figure}

\begin{figure}[h]
    \centering
    \includegraphics[width=1\textwidth]{listdeliveryAddressByuserID}
    \caption{查询用户的地址}\label{fig:listdeliveryAddressByuserID}
    \vspace{\baselineskip}
\end{figure}